package com.hzw.saas.api.workspace.bo;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.hzw.saas.common.util.constants.PatternConsts;
import org.springframework.format.annotation.DateTimeFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * <p>
 *
 * </p>
 *
 * @author sonam
 * @since 2021/2/4 10:56
 */
@Data
@ApiModel("工作空间文件")
@AllArgsConstructor
public class UserWorkspaceFileBo implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("名称")
    private String name;

    @ApiModelProperty("文件类型，1目录|2文件")
    private int type;

    @ApiModelProperty("文件长度,byte")
    private long length;

    @ApiModelProperty("创建时间, format=yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = PatternConsts.NORM_DATETIME_PATTERN)
    @JsonFormat(pattern = PatternConsts.NORM_DATETIME_PATTERN)
    private Date createDate;

}
